/**
 * 通用模型定义
 */

// API响应基础接口
export interface ApiResponse<T = any> {
  code: number;
  message: string;
  data: T | null;
  success: boolean;
}

// 分页参数接口
export interface PaginationParams {
  page: number;
  pageSize: number;
}

// 分页数据接口
export interface PaginationData<T> {
  records: T[];
  total: number;
  size: number;
  current: number;
  pages: number;
}

// 分页响应接口
export type PaginationResponse<T> = ApiResponse<PaginationData<T>>